﻿#include "ComboBox.h"

#include <QWheelEvent>

ComboBox::ComboBox(QWidget *parent): QComboBox(parent)
{
    setFocusPolicy(Qt::StrongFocus);
}


void ComboBox::wheelEvent(QWheelEvent *event)
{
    if (!hasFocus()) {
        event->ignore();
    } else {
        QComboBox::wheelEvent(event);
    }
}

void ComboBox::mousePressEvent(QMouseEvent *event) {
//    emit send_data(this->objectName(), QString::number(this->));
    QComboBox::mousePressEvent(event);
}
